package learn.arc.task;

import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.quartz.spi.JobFactory;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
import org.springframework.scheduling.quartz.SpringBeanJobFactory;

public class Quartz {

    public static void quartz() throws Exception {
        Scheduler scheduler=null;
        {
            StdSchedulerFactory factory;
            scheduler.scheduleJob(null, null);// 注册定时任务
            JobFactory jobFactory;// 任务工厂，spi加载。两类：quartz实现、spring实现
        }
        Job job;// 原型模式，每次执行JobFactory新建对象
        {
            JobDetail jobDetail;// job执行实例；组合job、数据
            JobBuilder jobBuilder;// 创建jobDetail
        }
        Trigger trigger;
        {
            SimpleTrigger simpleTrigger;
            SimpleScheduleBuilder builder;// 计划表

            CronTrigger cronTrigger;
            CronScheduleBuilder builder1;

            CalendarIntervalTrigger calendarIntervalTrigger;// 日历触发器
            DailyTimeIntervalTrigger dailyTimeIntervalTrigger;// 日期触发器
        }

    }

    /**
     *
     */
    public static void springboot(){
        // 任务工厂；
        SpringBeanJobFactory jobFactory;

        SchedulerFactoryBean factoryBean;// 默认StdSchedulerFactory


    }
}
